<extend name="./Common/View/Public/list.html" />

<block name="page_title">配置列表</block>

<block name="toolbar">
    {:W('Todo/UI/toolbar',array('配置',array('add','delete')))}
</block>

<block name="main">
    <script type="text/javascript">
        var list = {api:"{$Think.const.MODULE_NAME}/{$Think.const.CONTROLLER_NAME}/"};
        list.columns =  [[
            {checkbox: true, fixed: true}
            , {field:'title', minWidth:100, title : '配置名称'}
            , {field:'code', minWidth:100, title : '配置代码'}
            , {field:'value', minWidth:250, title : '值'}
            , {field: 'sort', title: '排序', width: 80, sort: true}
            ,{fixed: 'right', width:100, align:'center', toolbar: '#tpl_bar'}
        ]];
    </script>
    <script type="text/html" id="tpl_bar">
        {{ format_optbar(['edit','delete']) }}
    </script>
</block>
<block name="script">
    <script src="/api/Sys/Application/format"></script>
</block>